class Person:
    name = "ren"


class BlackRen(Person):
    name = "001"

    def __init__(self):
        super().__init__()

    @classmethod
    def a(cls):
        print(cls.__mro__)


print(BlackRen().name)

p = BlackRen()

p.name

print(BlackRen.a())

print(p.__getattribute__('name'))


"""

python 多集成顺序 广度优先

    object ---6  


P1 ---4               P ---5


C1  ---2              C ---  3


        D---   1 


"""


"""

老式 的  深度 优先
   object ---6  


P1 ---3               P --- 4


C1  --- 2             C ---5


        D---1    

"""





